<template>
  <div :class="['app-root', { 'has-tabbar': $route.meta.showTabbar }]" id="app">
    <router-view></router-view>
    <tabbar v-if="$route.meta.showTabbar !== false"></tabbar>
  </div>
</template>

<script>
import tabbar from "./components/tabbar.vue";

export default {
  name: "App",
  components: { tabbar },
};
</script>

<style>
#app {
  height: 100%;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

.app-root.has-tabbar {
  padding-bottom: 64px;
}
</style>
